package com.yxw.live_vod_backend_boot.service.impl;

import com.yxw.live_vod_backend_boot.service.UserBackendService;
import com.yxw.live_vod_facade.dto.PageUserListDto;
import com.yxw.live_vod_facade.feign.UserFeignClient;
import com.yxw.live_vod_facade.vo.UserInfoVo;
import com.yxw.yxnet_cd_center.common.dto.PageVO;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户管理Service业务层处理
 * @author xiexuxin
 * @date 2023-12-27
 */
@Slf4j
@Service
public class UserBackendServiceImpl implements UserBackendService {

    @Autowired
    private UserFeignClient userFeignClient;

    @Override
    public BaseResult<PageVO<UserInfoVo>> pageUserList(PageUserListDto dto) {
        return userFeignClient.pageUserList(dto);
    }

    @Override
    public BaseResult<List<UserInfoVo>> getUserList() {
        return userFeignClient.getUserList();
    }

    @Override
    public BaseResult getUserInfo(Long userId) {
        return userFeignClient.getUserInfo(userId);
    }
}
